Skip to content

ci: optimize Windows CI speed by disabling Defender real-time scanning#207

Merged
branchseer merged 1 commit intomainfrom
claude/optimize-windows-ci-xhQXX
Mar 8, 2026
Merged

ci: optimize Windows CI speed by disabling Defender real-time scanning#207
branchseer merged 1 commit intomainfrom
claude/optimize-windows-ci-xhQXX

Conversation

@branchseer
Copy link
Copy Markdown
Member

@branchseer branchseer commented Mar 8, 2026

Summary

Optimizes Windows CI build time by disabling Windows Defender real-time scanning, matching the optimization applied in voidzero-dev/vite-plus#716.

Changes

  • Disable Windows Defender real-time scanning on Windows runners in the test job
    • Added early step using Set-MpPreference -DisableRealtimeMonitoring $true
    • Only runs on Windows (if: runner.os == 'Windows')
    • Reduces NTFS I/O overhead for cargo builds, test execution, and pnpm operations

Before vs After (actual CI results)

Step Before (run 547, main) After (PR #207) Change
setup-rust 56s 54s -2s
cargo check 71s 64s -7s (~10%)
clippy 28s 26s -2s
cargo test 3m42s 3m28s -14s (~6%)
Total Windows job ~6m57s ~6m31s ~26s faster (~6%)

Verification

  • CI passes on all platforms (ubuntu, windows, macOS arm64, macOS x86_64)
  • Windows job completes faster than baseline
  • No permission issues with Defender disable

https://claude.ai/code/session_01CW1iBNB9Cc9MiNCvnpe5mB

Disable Windows Defender real-time monitoring on Windows CI runners
to reduce I/O overhead during cargo builds and test execution.
This matches the optimization applied in voidzero-dev/vite-plus#716
and is expected to improve Windows CI speed by ~30-50% on I/O-heavy steps.

https://claude.ai/code/session_01CW1iBNB9Cc9MiNCvnpe5mB
@branchseer branchseer merged commit 389ca7a into main Mar 8, 2026
6 checks passed
@branchseer branchseer deleted the claude/optimize-windows-ci-xhQXX branch March 8, 2026 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants